<?php
/**
 * @Author: Ron Chen
 * @Date:   2017-03-11 21:43:16
 * @Last Modified by:   Ron Chen
 * @Last Modified time: 2017-03-11 22:09:02
 */
namespace frontend\controllers;

use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;

/**
 * UserLend controller
 */
class UserLendController extends Controller
{
    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),
                'only' => ['get-code'],
                'rules' => [],
            ],
        ];
    }

    /**
     * 获取验证码
     * @type  POST 
     * @param phone 
     */
    public function actionGetCode(){
    	$phone = trim($this->request->post('phone'));
    	
    }

}